package tech.aistar.corejava.day06;

/**
 * Created by 豆梦寒 on 2019/7/22.
 */
public class EmpTest {
    public static void main(String[] args) {
        Emp e1 = new Emp(1,"dou",18,null);
        Emp e2 = new Emp(2,"meng",19,null);
        Emp e3 = new Emp(3,"meng",20,null);
        Emp e4 = new Emp(4,"han",20,null);
        Emp e5 = new Emp(5,"han",20,null);


        //创建一个上司对象
        Emp boss = new Emp(1,"ayou",18, new Emp[0]);
        boss.addEmp(e1);
        boss.addEmp(e2);
        boss.addEmp(e3);
        boss.addEmp(e4);
        boss.addEmp(e5);


        boss.delById(2);

        boss.delByEmpName("han");


        System.out.println(boss);
    }
    //创建一个下属的对象


}
